package cloudgamesaumysql

import (
	"gorm.io/gorm"
	"time"
)

/*
  @author liubogeng
  @date   2024/12/27 18:24
*/

// CGGameAUBatchUserRefundRecord 云游戏AU用户充值（订单）记录批处理退款批次记录表
type CGGameAUBatchUserRefundRecord struct {
	ID             int64  `json:"id" gorm:"column:id;type:bigint;primaryKey;autoIncrement;comment:ID"`
	BatchRefundID  string `json:"batch_refund_id" gorm:"column:batch_refund_id;type:varchar(256);default:'';not null;comment:批处理退款ID"`
	RechargeType   string `json:"recharge_type" gorm:"column:recharge_type;type:varchar(32);not null;default:'';comment:充值方式"`
	RefundOperator string `json:"refund_operator" gorm:"column:refund_operator;type:varchar(128);default:'';not null;comment:退款操作人"`
	//ExecutingState int            `json:"executing_state" gorm:"column:executing_state;type:tinyint;not null;default:0;comment:状态；1执行中；2已完成"`
	//ProgressBar    string         `json:"progress_bar" gorm:"column:progress_bar;type:varchar(32);not null;default:'';comment:进度条"`
	CreatedAt time.Time      `json:"created_at" gorm:"column:created_at;type:datetime;comment:该条记录创建时间"`
	UpdatedAt time.Time      `json:"updated_at" gorm:"column:updated_at;type:datetime;comment:该条记录修改时间"`
	DeletedAt gorm.DeletedAt `json:"-" gorm:"index;type:datetime;comment:该条记录删除时间"`
}

func (CGGameAUBatchUserRefundRecord) TableName() string {
	return "cg_game_au_batch_user_refund_record"
}
